package jp.bsws.common;

import java.util.ArrayList;
import java.util.List;

import jp.bsws.bean.KeyValueBean;

public class BSWSConstants {

	public static final String MSG_NO_JUGYOIN  = "メールアドレスまたはパスワードが違います。";
	public static final String MSG_NO_GROUP  = "所属グループが存在しません。システム管理者に連絡して下さい。";
	public static final String MSG_NO_TENPO  = "所属店舗が存在しません。システム管理者に連絡して下さい。";
	public static final String MSG_NO_KENGEN  = "権限が存在しません。システム管理者に連絡して下さい。";

	public static final String KEY_SESSION = "BSWS_SESSION_JOHO";

	public static final String C_DEL_FLG_NOT_DEL = "0";
	public static final String C_DEL_FLG_DEL = "1";

	public static final String C_SETTEI_HENKO_KA = "0";
	public static final String C_SETTEI_HENKO_HUKA = "1";

	public static final String C_TENPO_SANSYO_ALL = "0";
	public static final String C_TENPO_SANSYO_JI = "1";

	public static final String C_JUGYOIN_SANSYO_ALL = "0";
	public static final String C_JUGYOIN_SANSYO_JI = "1";

	public static final String C_HYOJI = "0";
	public static final String C_HI_HYOJI  = "1";

	public static final String C_HONTAI_KEIJO_NOT = "0";
	public static final String C_HONTAI_KEIJO  = "1";

	public static final String C_HOSYU_NYURYOKU_COD = "999999";
	public static final String C_HOSYU_NYURYOKU_KNJ  = "直接入力";

	public static final String KEY_RAITEN_YOIN = "RAITEN_YOIN";
	public static final String KEY_URIAGE_SHUBETSU = "URIAGE_SHUBETSU";
	public static final String KEY_SHIHARAI_HOHO = "SHIHARAI_HOHO";
	public static final String KEY_HOSYU_SHUBETSU = "HOSYU_SHUBETSU";
	public static final String KEY_GENKIN_SHUTSUNO = "GENKIN_SHUTSUNO";
	public static final String KEY_SYOHIZEI = "SYOHIZEI";
	public static final String KEY_JUGYOIN = "JUGYOIN";

	public static final int KBN_RAITEN_YOIN = 1;
	public static final int KBN_URIAGE_SHUBETSU = 2;
	public static final int KBN_SHIHARAI_HOHO = 3;
	public static final int KBN_HOSYU_SHUBETSU = 4;
	public static final int KBN_GENKIN_SHUTSUNO = 5;
	public static final int KBN_SYOHIZEI = 6;
	public static final int KBN_JUGYOIN = 7;
	public static final int KBN_HOSYU_SHUBETSU_WARIAI = 8;

	public static final List<KeyValueBean> setteiHenkoKbnList = getSetteiHenkoKbnList();
	public static final List<KeyValueBean> tenpoSansyoKbnList = getTenpoSansyoKbnList();
	public static final List<KeyValueBean> jugyoinSansyoKbnList = getJugyoinSansyoKbnList();
	public static final List<KeyValueBean> hyojiKbnList = getHyojiKbnList();
	public static final List<KeyValueBean> hontaiKeijoList = getHontaiKeijoList();

	private static List<KeyValueBean> getSetteiHenkoKbnList(){
		List<KeyValueBean> retList = new ArrayList<KeyValueBean>();
		KeyValueBean kvBean0 = new KeyValueBean();
		kvBean0.setKey("0");
		kvBean0.setValue("設定変更可");
		retList.add(kvBean0);
		KeyValueBean kvBean1 = new KeyValueBean();
		kvBean1.setKey("1");
		kvBean1.setValue("設定変更不可");
		retList.add(kvBean1);

		return retList;
	}

	private static List<KeyValueBean> getTenpoSansyoKbnList(){
		List<KeyValueBean> retList = new ArrayList<KeyValueBean>();
		KeyValueBean kvBean0 = new KeyValueBean();
		kvBean0.setKey("0");
		kvBean0.setValue("全ての店舗を参照");
		retList.add(kvBean0);
		KeyValueBean kvBean1 = new KeyValueBean();
		kvBean1.setKey("1");
		kvBean1.setValue("自店舗のみ参照");
		retList.add(kvBean1);

		return retList;
	}

	private static List<KeyValueBean> getJugyoinSansyoKbnList(){
		List<KeyValueBean> retList = new ArrayList<KeyValueBean>();
		KeyValueBean kvBean0 = new KeyValueBean();
		kvBean0.setKey("0");
		kvBean0.setValue("全ての従業員を参照");
		retList.add(kvBean0);
		KeyValueBean kvBean1 = new KeyValueBean();
		kvBean1.setKey("1");
		kvBean1.setValue("自分のみ参照");
		retList.add(kvBean1);

		return retList;
	}

	private static List<KeyValueBean> getHyojiKbnList(){
		List<KeyValueBean> retList = new ArrayList<KeyValueBean>();
		KeyValueBean kvBean0 = new KeyValueBean();
		kvBean0.setKey("0");
		kvBean0.setValue("表示");
		retList.add(kvBean0);
		KeyValueBean kvBean1 = new KeyValueBean();
		kvBean1.setKey("1");
		kvBean1.setValue("非表示");
		retList.add(kvBean1);

		return retList;
	}

	private static List<KeyValueBean> getHontaiKeijoList(){
		List<KeyValueBean> retList = new ArrayList<KeyValueBean>();
		KeyValueBean kvBean0 = new KeyValueBean();
		kvBean0.setKey("1");
		kvBean0.setValue("除かない");
		retList.add(kvBean0);
		KeyValueBean kvBean1 = new KeyValueBean();
		kvBean1.setKey("0");
		kvBean1.setValue("除く");
		retList.add(kvBean1);

		return retList;
	}
}
